local joyex__tieji = fk.CreateSkill {

  name = "joyex__tieji",

  tags = {  },

}



joyex__tieji:addEffect(fk.TargetSpecified, {
  name = "joyex__tieji",
  anim_type = "offensive",
  events = {fk.TargetSpecified},
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(joyex__tieji.name) and
      data.card.trueName == "slash"
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    local to = room:getPlayerById(data.to)
    room:addPlayerMark(to, "@@joytieji-turn")
    room:addPlayerMark(to, MarkEnum.UncompulsoryInvalidity .. "-turn")
    local judge = {
      who = player,
      reason = joyex__tieji.name,
      pattern = ".",
    }
    room:judge(judge)
    if judge.card.color == Card.Red then
      data.disresponsive = true
    elseif judge.card.color == Card.Black then
      if not player.dead then
      player:drawCards(2, joyex__tieji.name)
      end
    end
  end,
})

return joyex__tieji